package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdPermission;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdPermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(AdPermission record);

    int insertSelective(AdPermission record);

    AdPermission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(AdPermission record);

    int updateByPrimaryKey(AdPermission record);


    int deleteByUserId(@Param("userId")Integer userId);

}